package com.vx.cloud.dataCloud;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * Created by aofavx on 2017-8-8.
 */
@EnableConfigServer
@SpringBootApplication
@EnableDiscoveryClient //用来将config-server注册到上面配置的服务注册中心上去
public class ConfigServer {
    public static void main(String[] args) {
        new SpringApplicationBuilder(ConfigServer.class).web(true).run(args);

    }
}
